package FactoryMethodPattern.idcard;

import FactoryMethodPattern.framework.Product;

public class IdCard extends Product {
    private String owner;

    IdCard(String owner) {
        System.out.println("制作" + owner + "的ID卡。");
        this.owner = owner;
    }


    public String getOwner() {
        return owner;
    }

    @Override
    public void display() {
        System.out.println("使用" + owner + "的ID卡。");
    }
}
